package com.fj.netty.bytebuf;

import io.netty.buffer.ByteBuf;
import io.netty.buffer.ByteBufAllocator;

/**
 * @author fj
 * @date 2023/12/30 00:06
 */
public class ByteBufTest {
    public static void main(String[] args) {
        ByteBuf buffer = ByteBufAllocator.DEFAULT.buffer();
        System.out.println(buffer);
        StringBuilder sb = new StringBuilder();
        for (int i=0;i<300;i++){
            sb.append('a');
        }
        buffer.writeBytes(sb.toString().getBytes());
        System.out.println(buffer);
    }
}
